package service;

import dao.CartDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pojo.Cart;

@Service("cartService")
@Transactional
public class CartService {
    @Autowired
    private CartDao cartDao;
    public int aC(Cart cart){return cartDao.addCart(cart);}
    public int dC(Integer cid){return cartDao.delCart(cid);}
}
